package com.jilujia.domain.hotel;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import com.jilujia.framework.domain.PoEntity;

/**
 * A hotel where users may book stays.
 */
@Entity
@Table(name = "TB_HOTEL_VIEWCOUNT")
public class HotelViewCount implements PoEntity<Long>, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1148968929093044001L;

	private Long id;

	private Long hotelId;

	private Integer version;

	private Integer viewCount = 0;

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Version
	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Long getHotelId() {
		return hotelId;
	}

	public void setHotelId(Long hotelId) {
		this.hotelId = hotelId;
	}

	public Integer getViewCount() {
		return viewCount;
	}

	public void setViewCount(Integer viewCount) {
		this.viewCount = viewCount;
	}

}
